<script>
  let appShowNum = 0;
	export default {
		mounted() {
      this.$kt.websocket.start();
    },
    onLaunch: function() {
      console.log('App Launch');
		},
		onShow: function() {
      this.$kt.userAccount.requestSelf();
			console.log('App Show');
      appShowNum++;
      if(appShowNum > 1) {
        this.$kt.event.emit("appShow");
      }
    },
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	/*每个页面公共css */
</style>
